$(document).ready(function() {
    // 轮播图
    var rotateImg = function() {
        $(".content .main_img_top ul").animate({
            left: "-666px"
        }, 600, function() {
            $(this).delay(5000).animate({
                left: "0px"
            }, 600)
        });
    }
    var getTime = setInterval(rotateImg, 10000);

    // 控制轮播图
    var controlImg = function(take, numb) {
        take.hover(function() {
            $(".content .main_img_top ul").css('left', numb + 'px');
            clearInterval(getTime);
        }, function() {
            getTime = setInterval(rotateImg, 10000);
        });
    }

    controlImg($(".content .main_img_top dd:eq(0)"), 0);
    controlImg($(".content .main_img_top dd:eq(1)"), -666);


});
